using System;
using System.Collections;
using Server;
using Server.Network;

namespace Server.Items
{
    public class BaseShield : BaseArmor
    {
        public override ArmorMaterialType MaterialType { get { return ArmorMaterialType.Plate; } }

        public BaseShield(int itemID)
            : base(itemID)
        {
        }

        public BaseShield(Serial serial)
            : base(serial)
        {
        }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)1);//version
        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();
        }

		public virtual void OnBlock(BaseWeapon weapon)
		{
			int damage = Utility.RandomMinMax(weapon.MinDamage, weapon.MaxDamage);

			OnHit(weapon, damage);
		}
	}
}
